<div class="promotions view">
<h2><?php  __('Promotion');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $promotion['Promotion']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Vendor Location'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($promotion['VendorLocation']['id'], array('controller' => 'vendor_locations', 'action' => 'view', $promotion['VendorLocation']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Promotion Type'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $promotion['Promotion']['promotion_type']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Promotion Action'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $promotion['Promotion']['promotion_action']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Promotion Value'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $promotion['Promotion']['promotion_value']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Created'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $promotion['Promotion']['created']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Modified'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $promotion['Promotion']['modified']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Promotion', true), array('action' => 'edit', $promotion['Promotion']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Promotion', true), array('action' => 'delete', $promotion['Promotion']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $promotion['Promotion']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Promotions', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Promotion', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Vendor Locations', true), array('controller' => 'vendor_locations', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Vendor Location', true), array('controller' => 'vendor_locations', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Promotion Hours', true), array('controller' => 'promotion_hours', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Promotion Hour', true), array('controller' => 'promotion_hours', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Promotion Hours');?></h3>
	<?php if (!empty($promotion['PromotionHour'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Promotion Id'); ?></th>
		<th><?php __('Promo Start Date'); ?></th>
		<th><?php __('Promo End Date'); ?></th>
		<th><?php __('Is Deleted'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Modified'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($promotion['PromotionHour'] as $promotionHour):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $promotionHour['id'];?></td>
			<td><?php echo $promotionHour['promotion_id'];?></td>
			<td><?php echo $promotionHour['promo_start_date'];?></td>
			<td><?php echo $promotionHour['promo_end_date'];?></td>
			<td><?php echo $promotionHour['is_deleted'];?></td>
			<td><?php echo $promotionHour['created'];?></td>
			<td><?php echo $promotionHour['modified'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'promotion_hours', 'action' => 'view', $promotionHour['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'promotion_hours', 'action' => 'edit', $promotionHour['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'promotion_hours', 'action' => 'delete', $promotionHour['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $promotionHour['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Promotion Hour', true), array('controller' => 'promotion_hours', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
